<?php
class Content extends AppModel {
 
    var $name = 'Content'; 
    //var $actsAs = array('Tree', 'Sluggable' => array('label' => 'page_url', 'overwrite' => true)); 
    //var $order = 'Content.lft ASC';
	var $validate = array(
    	'name' => array(
	    	'ruleName' => array(
	            'rule' => array('custom', '/^[a-z0-9.&()_]*$/i'),
	    		'allowEmpty' => false,
	    		'message' => 'Name cannot be empty or use special characters'
	        ),
	        'ruleName2' => array(
	             'rule' => 'isUnique',
        		'message' => 'This name has already been taken.'
	        )
    	
    		
    	)
    );
    
    
    
} 
?>